package com.example.zz.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * <p>
 * 打分表
 * </p>
 *
 * @author ${author}
 * @since 2021-01-14
 */
public class Score implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * 编号主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 试题外键
     */
    private Long testQuestionsId;

    /**
     * 学生外键
     */
    private Long studentId;

    /**
     * 得分
     */
    private Float score;

    /**
     * 提数
     */
    private Integer number;

    /**
     * 修改时间
     */
    private LocalDateTime updateTime;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 乐观锁
     */
    private Integer version;

    /**
     * 逻辑删除
     */
    private Integer isDelete;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getTestQuestionsId() {
        return testQuestionsId;
    }

    public void setTestQuestionsId(Long testQuestionsId) {
        this.testQuestionsId = testQuestionsId;
    }

    public Long getStudentId() {
        return studentId;
    }

    public void setStudentId(Long studentId) {
        this.studentId = studentId;
    }

    public Float getScore() {
        return score;
    }

    public void setScore(Float score) {
        this.score = score;
    }

    public Integer getNumber() {
        return number;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }

    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

    public Integer getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(Integer isDelete) {
        this.isDelete = isDelete;
    }

    @Override
    public String toString() {
        return "Score{" +
        "id=" + id +
        ", testQuestionsId=" + testQuestionsId +
        ", studentId=" + studentId +
        ", score=" + score +
        ", number=" + number +
        ", updateTime=" + updateTime +
        ", createTime=" + createTime +
        ", version=" + version +
        ", isDelete=" + isDelete +
        "}";
    }
}
